import 'package:flutter/material.dart';
import 'package:get/get.dart';

import 'style/themes.dart';

/// @author zavier
/// @time 2023/7/5 17:36
/// @des 主题控制器

class ThemeController extends GetxController {
  ThemeData theme = AppThemes.defaultTheme;


  void changeTheme() {
    Future.delayed(const Duration(milliseconds: 250), () {
      //强制触发 build
      Get.forceAppUpdate();
    });
    update();
  }

  ThemeData getTheme() {
    return theme;
  }
}
